#include "entitydamagemessage.hpp"

#include "../entity/entitymanager.hpp"

EntityDamageMessage::EntityDamageMessage(unsigned int id, int points):
        entityId(id),
        damagePoints(points)
{}

void EntityDamageMessage::Compute()
{
    entityManager->GetEntity(entityId)->OnDamage(damagePoints);
}
